package com.example.springlog.Controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

@RestController
public class logController {
@PostConstruct
    public void loggerTest(){
        Logger logger= LoggerFactory.getLogger(logController.class);
        logger.info("------打印日志-------");
    }

}
